﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="tm_rating.ascx.cs" Inherits="tm_rating" %>
<%@ Register Src="tm_ratingResult.ascx" TagName="tm_ratingResult" TagPrefix="uc1" %>
<table border="0" cellpadding="1" cellspacing="1" style="width: 100%">
    <tr>
        <td rowspan="2" align="center" >
            <asp:Panel ID="pnlRatingList" runat="server" Width="100%"><TABLE style="WIDTH: 100%" cellSpacing=0 cellPadding=0 border=0><TBODY><TR><TD><asp:Label id="lblTitleRating" runat="server" CssClass="titletext2" Width="100%"></asp:Label>
               
            </TD></TR><TR><TD align="center"><asp:GridView id="gvRating" Width="100%" runat="server" CssClass="table" ShowHeader="False" AutoGenerateColumns="False">
                                <Columns>
                                    <asp:TemplateField>
                                        <ItemStyle HorizontalAlign="Center" VerticalAlign="Top" Width="15px" />
                                        <ItemTemplate>
                                            <asp:CheckBox ID="ckbRating" runat="server" />
                                            <asp:Label ID="lblRatingItems" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.ratedId") %>'
                                                Visible="False"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="Name1" HeaderText="Product">
                                        <ItemStyle HorizontalAlign="Left" VerticalAlign="Top" Width="350px" />
                                    </asp:BoundField>
                                </Columns>
                            </asp:GridView>
                <asp:Label id="lblMessageRating" runat="server"></asp:Label></TD></TR><TR><TD align=center><asp:Button id="btnSendVote" onclick="btnSendVote_Click" runat="server" CssClass="btn" Text="Bình chọn"></asp:Button>&nbsp;
                    <asp:Button ID="btnIgnore" runat="server" CssClass="btn" OnClick="btnClose_Click"
                        Text="Bỏ qua" /><asp:SqlDataSource id="dataScourceLoadRatingItems" runat="server"></asp:SqlDataSource> <asp:Label id="lblMaxRatingItem" runat="server" Visible="False"></asp:Label> <asp:Label id="lblRatingAtt" runat="server" Visible="False"></asp:Label> <asp:Label id="lblRatingId" runat="server" Visible="False"></asp:Label>
                    <asp:Label ID="lblRatingType" runat="server" Visible="False"></asp:Label></TD></TR><TR><TD align=center><asp:Label id="lblMessage" Width="100%" runat="server" Visible="False"></asp:Label></TD></TR><TR><TD align=center><asp:Label id="lblDebugMessage" Width="100%" runat="server" Visible="False"></asp:Label></TD></TR></TBODY></TABLE></asp:Panel>
        <asp:Button id="btnViewResult" onclick="btnViewResult_Click" runat="server" CssClass="btn" Text="Xem kết quả" Visible="False"></asp:Button>&nbsp;
            <asp:Button ID="btnClose" runat="server" CssClass="btn" OnClick="btnClose_Click" Text="  Đóng  "
                Visible="False" /></td>
    </tr>
    <tr>
    </tr>
    <tr>
        <td rowspan="1">
            <uc1:tm_ratingResult ID="myRatingResult" runat="server" Visible="false" />
        </td>
    </tr>
</table>
